package com.zeng.user.repository;

import com.zeng.user.domain.User;

/**
 * @author ahaschool
 * @date 2021-03-03 10:55
 */

public interface UserRepository {
    /**
     * 用户存储
     *
     * @param user
     */
    void saveUser(User user);

    /**
     * 根据邮箱查找
     *
     * @param email
     * @return
     */
    User findByEmail(String email);
}
